<template>
	<view>
		<view class="content">
			<view class="photo">
				<!-- <image src="https://pw.qyang.cc/static/code.png" mode=""></image> -->
				<image :src="rq.imgUrl(image)" mode=""></image>
			</view>
			<view class="text">
				{{code}}
			</view>
		</view>
	</view>
</template>

<script>
	import request from '@/utils/request';
	export default {
		data() {
			return {
				code:'',
				image:'https://pw.qyang.cc/static/code.png'
			}
		},
		onLoad(option) {
			if(!option.code){
				uni.reLaunch({
					url:"/pages/index/index"
				})
			}
			this.code=option.code
			this.image=request.requestUrl+"daren/make_qr?code="+this.code
		},
		methods: {
			
			
		}
	}
</script>

<style lang="scss">
	.content {
		margin: 50rpx auto;
		width: 702rpx;
		height: 720rpx;
		border-radius: 8px;
		opacity: 1;
		background: #FFFFFF;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;

		.photo {
			image {
				width: 524rpx;
				height: 524rpx;
			}
		}

		.text {
			font-family: PingFang SC;
			font-size: 16px;
			font-weight: normal;
			line-height: 14px;
			letter-spacing: 0px;

			color: #666666;
		}
	}
</style>